#ifndef UNICODEUTF8_H
#define UNICODEUTF8_H

#ifndef WIN32
typedef wchar_t* BSTR;
typedef unsigned short WORD;
typedef unsigned long DWORD;
#define MAX_PATH 260
#endif

#define RTN_SUCCESS 1
#define RTN_ERROR -1

#include <stdio.h>
#include <string>
#include "ConvertUTF.h"
using namespace std;

namespace CharacterSetConv
{
	bool Unicode2UTF8(const wchar_t* pInput_unicode,
					  char** ppOutput_utf8,
					  unsigned long* nLength);
	bool UTF82Unicode(const char* pInput_utf8,
					  wchar_t** ppOutput_unicode,
					  unsigned long *nLength);
	
	size_t unicode2utf8(wstring strwInput, string& strOutput);
	size_t utf82unicode(string strInput, wstring& strwOutput);	
}

#endif